package com.feige.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.feige.pojo.Exercise;
import com.feige.pojo.vo.ExerciseVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;


/**
 * <p>
 * 习题集 Mapper 接口
 * </p>
 *
 * @author feige
 * @since 2021-04-01
 */
@Repository
public interface ExerciseMapper extends BaseMapper<Exercise> {
    /**
     * 获取ExerciseVo
     * @param exerciseTitleId 习题标题ID
     * @param userId 用户ID
     * @param page 分页
     * @return
     */
    IPage<ExerciseVo> getExerciseVo(@Param("page") IPage<ExerciseVo> page, @Param("exerciseTitleId") String exerciseTitleId, @Param("userId") String userId);
}
